package com.hspedu.extends_;

public class NotePad extends Computer {
    private String color;

    public NotePad(String CPU, String intSto, String hard_disk, String color) {
        super(CPU, intSto, hard_disk);
        this.color = color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getColor() {
        return color;
    }

    public void showInfo() {
        System.out.println("平板信息：\n" + "color：" + getColor() + " " + getDetails());
    }}
